Measuring velocity from a displacement-time graph

You can measure an object's velocity by measuring the gradient of the line on its displacement-time graph, as shown in this diagram.